<template>
  <div class="two">
    <h3>周一周四·新品首发</h3>
    <ul>
      <li v-for="item in newGoodsListArr" :key="item.id" @click="clickfn(item)">
        <img :src="item.list_pic_url" alt="" />
        <p>{{ item.name }}</p>
        <span>{{ item.retail_price | brandList }}</span>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "Xinpin",
  props: ["newGoodsListArr"],
  data() {
    return {};
  },
  methods: {
    clickfn(item){
       this.$router.push({ path:"/xiangqing",query:{id:item.id} });
    }
  },
};
</script>

<style lang='less' scope>
.two h3 {
  text-align: center;
  height: 1.33333rem;
  line-height: 1.33333rem;
  font-size: 0.53333rem;
}
.two ul {
  display: flex;
  flex-wrap: wrap;
  img {
    width: 100%;
  }
  li {
    width: 50%;
    text-align: center;
  }
  p {
    font-size: 16px;
  }
  span {
    font-size: 14px;
    color: brown;
  }
}
</style>